package cn.com.shopec.erp.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "TBL_PRODUCT_INVENTORY")
public class ProductInventory {

    /** id **/
    private String id;

    /** 货品编号 **/
    private String prodNo;

    /** 商品名称 **/
    private String commoName;

    /** 货品条码 **/
    private String prodBarCode;

    /** 箱包装规格 **/
    private String specification;

    /** 库存数量 **/
    private Integer quantity;

    /** 未税成本价 **/
    private Double unitPrice;

    /** 供应商编号 **/
    private String supplierNo;

    /** 仓库编码 **/
    private String warehouseCode;

    /** 仓库名称 **/
    private String warehouseName;

    @GenericGenerator(name = "generator", strategy = "uuid.hex")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "ID", unique = true, nullable = false, length = 32)
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "PROD_NO")
    public String getProdNo() {
        return this.prodNo;
    }

    public void setProdNo(String prodNo) {
        this.prodNo = prodNo;
    }

    @Column(name = "COMMO_NAME")
    public String getCommoName() {
        return this.commoName;
    }

    public void setCommoName(String commoName) {
        this.commoName = commoName;
    }

    @Column(name = "PROD_BAR_CODE")
    public String getProdBarCode() {
        return this.prodBarCode;
    }

    public void setProdBarCode(String prodBarCode) {
        this.prodBarCode = prodBarCode;
    }

    @Column(name = "SPECIFICATION")
    public String getSpecification() {
        return this.specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    @Column(name = "QUANTITY")
    public Integer getQuantity() {
        return this.quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    @Column(name = "UNIT_PRICE")
    public Double getUnitPrice() {
        return this.unitPrice;
    }

    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }

    @Column(name = "SUPPLIER_NO")
    public String getSupplierNo() {
        return this.supplierNo;
    }

    public void setSupplierNo(String supplierNo) {
        this.supplierNo = supplierNo;
    }

    @Column(name = "warehouse_code")
    public String getWarehouseCode() {
        return this.warehouseCode;
    }

    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }

    @Column(name = "warehouse_name")
    public String getWarehouseName() {
        return this.warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

}
